package angels.client.Entities;

import android.location.Location;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.OverlayItem;

public class CustomOverlayItem extends OverlayItem {

	protected String mImageURL;
	protected String duration;
	protected Sharing share;
	protected int likes,dislikes;
	
	public CustomOverlayItem(GeoPoint point, String title, String snippet, String duration, 
			int likes, int dislikes,String imageURL,Sharing share) {
		super(point, title, snippet);
		mImageURL = imageURL;
		this.duration=duration;
		this.likes=likes;
		this.dislikes=dislikes;
		this.share=share;
	}
	
	public CustomOverlayItem(Location myLocation) {
		super(new GeoPoint((int) (myLocation.getLatitude() * 1E6),(int) (myLocation.getLongitude() * 1E6)),"","");
	}

	public String getImageURL() {
		return mImageURL;
	}

	public void setImageURL(String imageURL) {
		this.mImageURL = imageURL;
	}
	
	public Sharing getShare(){
		return share;
	}
}
